home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / utils / tlayr10 / mouse.h < prev    next >
C/C++ Source or Header  |  1995-04-19  |  866b  |  34 lines

  1. // MOUSE handling functions
  2.  
  3. struct State {
  4.               unsigned PointX, PointY, Button, EventX, EventY;
  5.               unsigned char Cursor;
  6.              };
  7.  
  8. #ifdef __cplusplus
  9.  extern "C" {
  10. #endif
  11.  
  12.             extern struct State Mouse;
  13.             extern unsigned resetmouse();
  14.             extern void setlocation(unsigned,unsigned);
  15.             extern void defrange(unsigned,unsigned,unsigned);
  16.             extern void Install_mouse();
  17.             extern void SetDrawProc( void (*)() );
  18.             extern void mouse_cursor(unsigned);
  19.  
  20. #ifdef __cplusplus
  21.            }
  22. #endif
  23.  
  24. #define set_Xrange(xmin,xmax) defrange(7, xmin, xmax)
  25. #define set_Yrange(ymin,ymax) defrange(8, ymin, ymax)
  26.  
  27. #define ON       0x0001
  28. #define OFF      0x0000
  29.  
  30. #define LEFT_BUTTON     0x0001
  31. #define RIGHT_BUTTON    0x0002
  32. #define CENTER_BUTTON   0x0004
  33.  
  34.